import React, { useState, useEffect } from "react";
import Test from './components/Test/Test'

const App = () => {
  const [count, setCount] = useState({ count: 0 })

  // const changeNumber = () => {
  //   setCount(count++)
  // }

  useEffect(() => {
    setTimeout(() => {
      setCount({ count: 100 })
    }, 2000)
  }, [])

  return <>
    {/* <h1>测试页面number:{count}</h1>
    <div>
      <button onClick={changeNumber}>改变值</button>
    </div> */}
    <Test number={count} />
  </>

}
export default App

